package net.thxjj.adminServer.service.impl;

import net.thxjj.adminServer.entity.aep.HeartData;
import net.thxjj.adminServer.mongodao.MongoHeartDao;
import net.thxjj.adminServer.service.IDeviceHeartAnaysis;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class DeviceHeartAnaysis implements IDeviceHeartAnaysis {

    @Autowired
    private MongoHeartDao mongoHeartDao;

    @Override
    public List<HeartData> getHeartList(String deviceId, long start_time, long end_time) {
        return mongoHeartDao.getHeartBeatList(deviceId,start_time,end_time);
    }
}
